
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
        <ul class="searchContent" style="height:30px">
            <li>
                <label  id="login_username">作业编号：</label>
                <input type="text" name="jobCode" value="${condition.jobCode!''}"/>
            </li>
            <li>
                <label id="login_username">作业描述：</label>
                <input type="text" name="jobDesc" value="${condition.jobDesc!''}"/>
            </li>
            <li>
                <label >状态：</label>
                <select name="enableFlag">
                    <option value >所有</option>
                    <option value="1" <#if condition.enableFlag?? && condition.enableFlag == 1> selected</#if>>启用</option>
                    <option value="0" <#if condition.enableFlag?? && condition.enableFlag == 0> selected</#if>>禁用</option>
                </select>
            </li>
            <li style="width:100px"><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
        </ul>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" target="dialog" mask="true"  width="650" height="300" rel="addTimeJob"
            href="${rc.getContextPath()}/manage/management/timejob/addTimeJob?navTabId=${navTabId!''}"><span>新增定时作业</span></a></li>
            <li><a class="edit" target="dialog" mask="true"  width="650" height="300" rel="editTimeJob"
            href="${rc.getContextPath()}/manage/management/timejob/editTimeJob?navTabId=${navTabId!''}&jobCode={timejob_id}"><span>修改定时作业</span></a></li>
            <li><a class="do" target="ajaxTodo"
            href="${rc.getContextPath()}/manage/management/timejob/doExecuteTimedJob?navTabId=${navTabId!''}&jobCode={timejob_id}"><span>立即执行</span></a></li>
            <li><a class="delete" target="selectedTodo"
            href="${rc.getContextPath()}/manage/management/timejob/deleteTimeJob?navTabId=${navTabId!''}" callback="batchjobAjaxDone" postType="string" rel="jobCodes"
                title="确认要删除选择的定时作业吗？"><span>删除</span></a></li>
         </ul>
    </div>
    <table class="table" width="100%" layoutH="140">
        <thead>
            <tr>
             	<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl">
                <th width="80" orderField="jobCode" >作业编号</th>
                <th width="80">作业描述</th>
                <th width="100">作业类名</th>
                <th width="100">周期描述</th>
                <th width="60">时区</th>
                <th width="80">上次执行时间</th>
                <th width="50">状态</th>
                <th width="50">是否并行</th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as job>
            <tr target="timejob_id" rel="${job.jobCode!''}">
            	<td><input name="jobCodes" value="${job.jobCode!''}" type="checkbox"></td>
                <td>${job.jobCode!''}</td>
                <td>${job.jobDesc!''}</td>
                <td>${job.jobClass!''}</td>
                <td>${job.cronDesc!''}</td>
                <td>${job.javaTimeZone!''}</td>
                <td>${(job.lastExecutionTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td><#if job.enableFlag == 1>启用<#else>禁用</#if></td>
                <td><#if job.concurrent == 1>是<#else>否</#if></td>
            </tr>
        </#list>
        <#else>
        <tr target="timejob_id">
                <td colspan="7" class="noData">======列表无数据=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="timejob_id">
                <td colspan="7" class="noData">======列表无数据<=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/admin/common/panelBar.html">
</div>